package com.longcai.service;

import com.alibaba.fastjson.JSONObject;
import com.longcai.bean.ApiResult;
import com.longcai.bean.PageHelper;
import com.longcai.entity.customer.ClyjUser;
import com.longcai.entity.customer.ClyjUserTouch;
import com.longcai.entity.customer.customerVo.ClyjFuyouSmallcompanyRegistervo;
import com.longcai.entity.order.ClyjGoodsOrderDetails;
import com.longcai.page.table.PageTableResponse;
import com.longcai.vo.ClyjGoodsOrderDetailsVo;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 商品订单表 服务类
 * </p>
 *
 * @author ZJ
 * @since 2019-04-19
 */
public interface ClyjGoodsOrderDetailsService {

    ApiResult<?> createOrder(ClyjUser clyjUser, ClyjGoodsOrderDetailsVo clyjGoodsOrderDetailsVo, List<ClyjFuyouSmallcompanyRegistervo> touches);

    List<ClyjGoodsOrderDetails> selectByUserId(String userId);

    PageTableResponse selectByShopsId(JSONObject params, PageHelper pageHelper);

    PageTableResponse selectByShopsId(String shopId, PageHelper pageHelper);

    ApiResult<?> selectOrderBytradeNo(String tradeNo);

    ApiResult<?> updateOrderInfo(Map<String,Object> map);

    ApiResult<?> cancelOrder(String trade_no);

}